package org.batatasframework.support.database.parameters;

import org.batatasframework.support.database.sql.QueryParameter;

public abstract class AbstractQueryParameter<T> implements QueryParameter{
	protected final int index;
	protected final T value;
	
	protected AbstractQueryParameter(int index, T value){
		this.index = index;
		this.value = value;
	}
	
	@Override
	public boolean valid() {
		return value != null;
	}
}
